package GradeManager.StudentGradeSystem.dao;

import GradeManager.StudentGradeSystem.pojo.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

//学生类数据层接口
@Mapper
public interface StudentDao extends BaseMapper<Student> {
    @Update("update student_view " +
            "set course_mark=#{courseMark},add_time=#{addTime} " +
            "where school_year=#{schoolYear} and student_id=#{studentId} and subject_name=#{subjectName}")
    void updateGrade(Student studentGrades);
}
